/**
 * Created by 郑益贤 on 2017/9/18.
 */
angular.module('weimob_security.auth', [
    'ui.router',
    'module.auth',
    'service.auth',
])
    .run(
        ['$rootScope', '$state', '$stateParams', '$location', function ($rootScope, $state, $stateParams, $location) {
            $rootScope.$state = $state;
            $rootScope.$stateParams = $stateParams;
    }])
    .config(['$httpProvider', function ($httpProvider) {
        $httpProvider.defaults.withCredentials = true;
    }])
    .config(
    [          '$stateProvider', '$urlRouterProvider','$locationProvider',
        function ($stateProvider,   $urlRouterProvider,$locationProvider) {
            $urlRouterProvider
                .otherwise('/login');
        }
    ]);